package com.nbgroup.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

@Data
public class PageContractStatisticsDTO{
    //页码
    @ApiModelProperty("分页页码")
    private int pageNum ;

    //每页显示记录数
    @ApiModelProperty("每页记录数")
    private int pageSize ;

    public void check() {
        if (pageNum <= 0) {
            pageNum = 1;
        }

        if (pageSize <= 0 || pageSize > 100)  {
            pageSize = 10;
        }
    }
private Integer channel;
private Integer deptId;
private String createBy;
private LocalDate beginCreateTime;
private LocalDate endCreateTime;
}
